<!-- 新建模块 -->
<template>
  <div class="">
    <ze-nav-bar :left-arrow="true" :home="true" :title="processName" />
    <div class="person-info">
      <div class="taskForm">
        <div>
          <select-down
            :columns="moduleList"
            :value="moduleName"
            :label-name="'上级模块'"
            @changeValue="changeValue"
          />
        </div>
        <div class="moreStyle">
          <van-field
            v-model="form.moduleName"
            class="basicClass"
            label="模块名称"
            placeholder-style="color:#999;"
            placeholder="请输入"
            type="input"
            @change="form.moduleName = $event.detail"
          />
        </div>
      </div>
      <div class="infoBtn">
        <van-button
          size="large"
          :class="showSubmit ? 'submit' : 'noSubmit'"
          round
          @click="submitPerson"
        >
          新增
        </van-button>
      </div>
    </div>
  </div>
</template>

<script>
import selectDown from '@/pages/me/select-down.vue'
import ZeNavBar from '@/components/ze-nav-bar/index.vue'
export default {
  components: {
    selectDown,
    ZeNavBar,
  },
  data() {
    // 这里存放数据
    return {
      moduleList: [],
      processName: '编辑模块',
      form: {
        moduleName: '',
        showSubmit: false,
      },
    }
  },
  computed: {},
  watch: {},
  created() {

  },
  mounted() {

  },
  activated() {},
  methods: {
    changeValue(val) {},
  },
}
</script>
<style lang="scss" scoped>
.person-info {
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  padding:10px 15px 0;
  position:relative;
  .taskForm {
    width: 93%;
    margin: 0 auto;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.06);
    border-radius: 2px;
  }
  .infoBtn {
    text-align: center;
    padding-top: 15%;
    padding-bottom: 10%;
    width: 100%;
    position:absolute;
    right:7px;
    top:466px;
  }
  .headSty {
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    padding: 0px 5px 0px 18px;
    .head-img {
      align-items: center;
      display: flex;
      img:nth-child(1) {
        width: 28px;
        height: 28px;
      }
      img:nth-child(2) {
        width: 16px;
        height: 16px;
      }
    }
  }
  .taskSty {
    padding: 10px 0px 0px 16px;
  }
}
</style>
<style lang="scss">
.good-picture {
  padding-left: 16px;
  padding-right: 6px;
}
.evaluate {
  view .van-cell__title {
    display: none !important;
  }
  view .van-cell__value {
    height: 100px;
    background: #f9f8f8;
  }
  view .van-field__body--textarea {
    height: 100%;
  }
}
.moreStyle {
  view {
    label {
      width: 100%;
      display: flex;
      white-space: nowrap;
    }
    input {
      padding-right: 3px;
      text-align: right;
    }
    textarea {
      height: 100% !important;
      padding-left: 8px;
      padding-top: 4px;
    }
  }
  .van-field__body {
    padding-right: 16px;
  }
}
.taskForm {
  .van-cell {
    padding: 10px 5px 10px 2px !important;
  }
  .van-cell__title {
    min-width: 8em !important;
    max-width: 8em !important;
    padding-left: 16px;
  }
  .van-field__control {
    color: #999 !important;
    font-size: 12px;
  }
  .van-icon:before {
    color: #999;
  }
  .van-field__label {
    color: #333 !important;
    white-space: normal !important;
  }
}
.infoBtn {
  .noSubmit {
    .van-button--round {
      height: 36px;
      width: 75%;
      background: #ccc !important;
      color: #fff !important;
      font-size: 16px !important;
    }
  }
  .submit {
    .van-button--round {
      height: 36px;
      width: 75%;
      background: #029b00 !important;
      color: #fff !important;
      font-size: 16px !important;
    }
  }
}
</style>
